A.L.
I would calmly and consistently tell him that we have to keep it in our pants except when in the bathroom and tell him to take his hands out of his pants every time you see him do it. But remain calm and stay cool - it's so normal and every little boy "discovers" himself. Divert his attention and give him something to hold in both hands in public. :) Pick your battles - start with telling him that this behavior is a "no no" in public and then add in your home. Explain his pee pee is private and not to show to anyone else except Mommy. Just don't show any emotional stuff about it so he doesn't get extra attention by doing it. Sigh, isn't being a Mommy fun? :)