Yes, you can do Ipanema on your own. Take into consideration what Paul said and only take the essentials and go during mid-day. Stay to the beach area and you'll be fine but just use common sense like in any large area.
A cab will run you about $25 from the cruise ship port that Azamara uses, or at least did on our December cruise.
Take care,
Mike