"My Bad ..... " "Me Bad .... " WTF

hi sorry for my ignorance, but does anyone here know where this came from.. it seems to be as a reply to making an error/mistake.. but for the life of me can't work it out... what does it mean, where did it come from - or is it just some american carp that we are following as per usual? any responses greatly appreciated. 
