As others have said, it depends on a lot of factors, but I have found that the debit card almost always gives you a better rate than buying currency in the US.
And Bank of America debit cards do not give good exchange rates, even if you are within the ATM alliance. A debit card that does not charge exchange fees (Capital One, Charles Schwab, some credit unions, etc.) will give you a better rate.