Om gam ganapataye namaha!
A very loose translation might be:
Om = Salutations!
Gam = The secret power sound of Ganesh. It is his "seed syllable" or bija mantra.
Ganapataye = Another name of Ganesh, the breaker of obstacles.
Namaha = Namaskaram, my salutation (to Ganesh)