The unnamed Mayor called T.J. Buzby (whom he believes to be his twin brother, Sheriff Rufus Buzby) on his police-car radio.
He talks roughly to the person he thinks is his subordinate, the sheriff.
Scooby-Doo Meets the Boo Brothers
He wanted to know where Buzby was and what progress he was making on the escaped ape case. The criminal Buzby rudely answered "Who wants to know?" and got very flustered when he found out it was the Mayor. His brother, the real sheriff, would no doubt have recognized the voice, so Buzby started babbling to cover his mistake.
Mayor: Dag nab it, where the blazes are you, Rufus? Rufus Buzby (T.J. Buzby): Who wants to know? Mayor: Your boss, the Mayor, that's who! Rufus (T.J.): Oh! hello, your honor. How are you? How's the missus and the kids? How's your dog?" (laughs nervously)