If it was racist level of spewing, then yes, Andy deserves what he got. And that's if he's drunk or not. Racism is wrong and I do agree with hard lines on that. However, if this is a bit more "oh she's a woman and x,y,z are wrong", then why not talk with him and persuade him? I think someone is very thin skinned to be in academia and not stand up to the occasional idiot who thinks they're not level minded based on gender.
I am going on what AnnaJ has posted. It seemed, to me, more of Professor Z being a woman and being wrong than racism. To go to the level that it has, over one time of being a bit drunk, seems overkill. It's also the reason that I don't want to go into academia - I cannot be on stage all the time like that, as a student or a professor.