Best way to temporarily block off heater hoses?

I also thought about an inline valve, but I'm not sure which hose flows to the core and which is the return.