To be honest with you is a set phrase, to introduce an opinion that the other person might not agree with. It's meaning is similar to "confidentially" or "honestly."
A: Would you like apple strudel for dessert?
B: To be honest with you, I never liked apple strudel very much.
"Being honest with you" is not a substitute; it is used in sentence