The RAISE statement takes a string which becomes the message it will display:
RAISE EXCEPTION 'Invalid values!';
Variables can be inserted into the string using percent signs:
RAISE EXCEPTION 'Invalid values: %, %, %', val1, val2, val3;
PostgreSQL: Documentation: Manuals: PostgreSQL 9.0: Errors and Messages