The definition of ahem is something said when trying to get a person's attention or when trying to alert someone to something.(interjection)
An example of ahem is what you would say to stop someone who is about to ruin a surprise.
See ahem in Webster's New World College Dictionary
See ahem in American Heritage Dictionary 4
Learn more about ahem