Identifying received signal name in Bash

When a signal is received, I can execute some commands using trap. Example: trap 'echo hello world' 1 2 If any of the signals specified is received, the hello world' is displayed. But how can I...