I'm not on ubuntu right now, but this should be done by an ubuntu specific extension that places the menu bar in the global menu bar area that unity creates in essentially the same place it is on a mac. Should be installed by default on untuntu+unity, perhaps you disabled it?