Only happened to me once as a player. Coach did nothing. Sitting near the on deck circle...before it was my turn at bat as I was walking up to the on deck area (didn't have circles then), I walked up to the kid and asked him if he wanted to be wearing his teeth on his ears.
Foul-mouthing ended.
As I get much older, I agree...The better way is to do something on the field.