getting the object that the running script is attached to

Sorry if this has been answered before but I'm not even sure how to word a search to find what I'm looking for.

Basically, I have 4 cubes on the screen, one is the player the other three are "enemies". Each enemy is running the same script since they will all behave the same way, but I'm trying to put into code how to get the name of the object that is currently running the script.

if I could write the code in english it would look like this

print(the name of the object in the hierarchy that is running this script);

Can anyone help?

You're going to kick yourself when you find out. :P

print(gameObject.name);