Bah can mean 'I know everything' or 'I know nothing', it all depends on the delivery and context. Say it quickly and you can sound dismissively confident. However, you can also say it quickly to sound genuinely surprised. It can also be stretched out to demonstrate just how sceptical and incredulous you are.