A new method to measure galaxy bias by combining the density and weak lensing fields