I am man, and this sort of culture makes me very uncomfortable and angry. I imagine it's even more aggravating and discomforting to women in these situations.
Simply refraining from laughing at a distasteful joke or turning a blind eye to vulgarities is a cop-out. We are all apart of the culture; if you're not calling this shit out, you might as well be laughing along.
If you see these behaviors, make an example to call that person out. Make it very clear that this behavior is not accepted. Failure to do so is implicit approval.