Used to express assent or agreement when replying to a woman: ‘yes, ma'am’.
Chiefly in representations of African-American speech. Now sometimes used to highlight offensive expectations or stereotypes of black servility.
Late 19th century; earliest use found in Puck (New York). Representing an African-American pronunciation of yes, ma'am.