For static SQL in a package (like SQL stored procedures), use of parameter markers while still allowing optimization by value can be accomplished through the REOPT ALWAYS bind or precompile options.
Then use the OPTPROFILE bind option at the package level, or the CURRENT optimization profile special register at the session level, to enable the optimization profile.