Mingye Wang says to YSITD
a="'a b'" f(){ printf '%q\n' "$@"; } f $a # \'a # b\'