I probably picked it up of some American telly programme or film. I think the use for it is when you are aware you are rambling or going off subject and maybe a bit embarrassed, so use this slightly silly lighthearted way of saying "anyhow" to get back on track.