Feeding your pug a diet that prevents any gastrointestinal issues, such as nausea and vomiting, may prevent his foaming of the mouth.