How to bake AO shadow maps in blender?

I will bake AO masks with transparency maps in 3ds max. How do I achieve this in blender?