From the Super Mario Wiki, the Mario encyclopedia
Wario meets him during Episode 5. Upon finding him, Wario draws the gatekeeper's ire by repeatedly insulting his appearance, comparing him to a backed-up toilet. The gatekeeper tells Wario that only people who are worthy get to see the Pharaoh. Wario asks him if he wants some money, but the gatekeeper tells him that he has turned away people who are far richer than him. Wario is only allowed through after he finds two royal medallions.