You could also use Ruby's built in exponent notation:

base**exp