It is recommended to ask the person how they would like to be addressed. If they prefer a gender-neutral pronoun or title, it is important to respect their preference and use that instead of “ma’am” or “sir”.