Hi Dario, "for what it's worth " has a slightly flippant connotation. It means, for lack of a better explanation, "take this information and do what you like with it".
"For what it's worth, this cereal is better." The speaker doesn't want to say "This cereal is better". "In my opinion" is another way to say it.
It is used to soften a statement, such as the one you used. "Or for what it's worth, why did you come back?" The speaker is trying to convey a feeling of not caring whether the person came back or not. He may care very much, but he doesn't want the person to know his true feelings.
I hope this helps.