Etymology
Today it means: Used to express agreement with a woman (and, somewhat less commonly, a man): yes, ma'am. Full definition →
Contraction of yes, ma'am.
Etymology from Wiktionary, CC BY-SA 4.0.