This has already been done by some commercial breweries in Canada and Europe. I can't remember any of the names but you should be able to find them with an Internet search.
Marijuana being closely related to hops, I believe the marijuana is added to the beer in a similar fashion.