Perhaps one should carry a bottle of nail polish and start creating a masterpiece on the offender's toes (assuming a bare foot).
I would probably have turned around and asked the person first, then followed up with a variation of the above suggestions if the behavior continued.