Yeah I had a coworker who put salty MessageBox.Show debug messages in the code, and one day while demoing the software a pop up appeared that said “BITCH!!!”
Needless to say the customer was not amused. So the simple solution is just ban the bad words from the source code.
Swears are fine and good, slurs not so much.
I wrote something similar in another comment. This is where I have seen curse words bite teams too. It is always the needless "joke" when debugging that surfaces. Just go boring. No one gets offended by "check 001."