Multiple ecstasy pills, although you rarely heard anybody refer to taking just one as eating a bean. This implies a person will be taking at least two, which used to be common. Another word for ecstasy was rolls.
I'm gonna eat some beans this weekend and have a good time.