Etymology
Today it means: A respectful term of address to an adult, especially if their name is unknown. Full definition →
From ma'am + sir.
Etymology from Wiktionary, CC BY-SA 4.0.