cook up

[cook up] {v.}, {informal} To plan and put together; make up; invent.

The boys cooked up an excuse to explain their absence from school.