Urban Dictionary (even though this is a common Southern or Bible Belt expression):

bless your heart : bless his heart : bless her heart

"A term used prior to ridiculing, insulting the sensibilities of, or pointing out the shortcomings of someone. Used to soften the blow of a statement, and can render nearly any comment, no matter how brash or distasteful, socially acceptable."