I worked as a dish bitch one summer at a restaurant. Honestly wasn't bad, nice people great boss, free meals every shift. I had a friend who had experience as a line cook, and my restaurant was looking to hire one. I put in a good word for him and he got the job there. Not two weeks later, I find out during a shift (with him) that he was quitting. I was mad. In fact, I've barely spoken to the guy since this happened. But I still had work to do, which included interacting with him for the rest of the night. I just had to pretend I didn't care and continue. The job is the important part. Get your shit done, do it well. I could have gotten angry at him, and caused a scene, and made it awkward for everyone, but I just bit the bullet and moved on.
I guess that isn't really that related, but I hope it offers some perspective. I don't know your situation, but I hope it gets better.
As for direct advice? Try not to retaliate with insults. Staying silent probably won't work, but offering a sarcastic "Nice one..." could potentially lead to them getting bored.